﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SoftwareArchitecture
{
    class DatabaseRowStockItem
    {
        public decimal UnitCost { get; set; } // cost of goods
        public decimal Delivery { get; set; } // cost of delivery
        public string Name { get; set; } // "Widget"

        public  override string ToString()
        {
           return "" + string.Format("{0,12} {1,6}",Name, UnitCost) +
                   " Delivery " + Delivery + " line total " +
                   string.Format("{0,6}", UnitCost + Delivery);
        }

    }
}
